package com.diver.flinkdemo.utils.excel;

import java.util.Date;

/**
 * Excel文件导入导出 的测试类
 *
 * @author fengyun.guo  2017-09-01 16:24:04
 */
public class Testpojo {
    @ExcelAnnotation(exportTitleName = "用户名")
    String username;

    @ExcelAnnotation(exportTitleName = "年龄")
    Integer age;
    @ExcelAnnotation(exportTitleName = "性别")
    String sex;
    @ExcelAnnotation(exportTitleName = "婚否")
    Boolean marriage;
    @ExcelAnnotation(exportTitleName = "收入")
    Long money;

    @ExcelAnnotation(exportTitleName = "登录时间", dateTimeFormat = "yyyy-MM-dd ")
    Date logintime;

    @ExcelAnnotation(exportTitleName = "创建时间", dateTimeFormat = "yyyy-MM-dd HH:mm")
    Date createtime;

    @ExcelAnnotation(exportTitleName = "修改时间",dateTimeFormat = "yyyy-MM-dd HH:mm:ss")
    Date modifytime;

    @ExcelAnnotation(exportTitleName = "登录名")
    String loginname;

    @Override
    public String toString() {
        return "Testpojo{" + "username='" + username + '\'' + ", age=" + age + ", sex='" + sex + '\'' + ", marriage=" + marriage + ", money=" + money + ", logintime=" + logintime + ", createtime=" + createtime + ", modifytime=" + modifytime + ", loginname='" + loginname + '\'' + '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Boolean getMarriage() {
        return marriage;
    }

    public void setMarriage(Boolean marriage) {
        this.marriage = marriage;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
}
